package com.cskaoyan.config3;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 参数类 → 主要用来接收来自于配置文件中的值
 * @author stone
 * @date 2022/01/04 16:15
 */
@Component
@Data
@ConfigurationProperties(prefix = "druid.datasource")
public class DataSourceProperties {
    String driver;
    String url;
    String username;
    String password;
}
